<div class="modal-content" id="daicuoUpload" data-config='{:json_encode(["url"=>$path_upload,"maxSize"=>config("common.upload_max_size"),"mimeTypes"=>DcEmpty(config("common.upload_mime_type"),"video/mp4,application/zip")])}'>
  <div class="modal-header">
    <h6 class="modal-title text-purple">上传文件</h6>
    <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span></button>
  </div>
  <div class="modal-body py-4 text-center">
  {if function_exists('attachmentSave')}
    <form class="w-75 mx-auto py-3">
      <div class="input-group input-group-sm mb-3">
        <div class="input-group-prepend">
          <span class="input-group-text">设置积分</span>
        </div>
        <input class="form-control text-center" type="text" name="score" id="score" value="0" autocomplete="off" required>
        <div class="input-group-append">
           <button class="btn btn-purple" id="btn-upload" type="button" style="border-top-right-radius: .2rem;border-bottom-right-radius: .2rem;">
            <i class="fa fa-upload"></i> {:lang('upload')}
          </button>
        </div>
      </div>
      <div class="w-75 form-text text-muted text-left small mb-0">
        支持类型：{:DcEmpty(config("common.upload_mime_type"),"video/mp4,application/zip")}
      </div>
    </form>
  {else/}
  <button class="btn btn-purple" id="btn-upload" type="button">
    <i class="fa fa-upload"></i> {:lang('upload')}
  </button>
  {/if}
  </div>
</div>